package com.chendongyang.www.po;//用来存放停车口和停车位的相关信息；

public class parkingstation {
    private String parkingS;
    private String parkingB;

    public parkingstation(String parkingS, String parkingB) {
        this.parkingS = parkingS;
        this.parkingB = parkingB;
    }

    public parkingstation() {
    }

    public String getParkingS() {
        return parkingS;
    }

    public void setParkingS(String parkingS) {
        this.parkingS = parkingS;
    }

    public String getParkingB() {
        return parkingB;
    }

    public void setParkingB(String parkingB) {
        this.parkingB = parkingB;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof parkingstation)) return false;

        parkingstation that = (parkingstation) o;

        if (parkingS != null ? !parkingS.equals(that.parkingS) : that.parkingS != null) return false;
        return parkingB != null ? parkingB.equals(that.parkingB) : that.parkingB == null;
    }

    @Override
    public int hashCode() {
        int result = parkingS != null ? parkingS.hashCode() : 0;
        result = 31 * result + (parkingB != null ? parkingB.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return
                "停车库:" + parkingS +" 停车位:" + parkingB;
    }
}
